export enum Actions {
    Create = 0,
    Update = 1,
    Delete = 2,
    Select = 3,
    Move = 4,
    Copy = 5,
    Paste = 6,
    Clear = 7,
    Insert = 8,
    FixedPosition = 9
}

export const ActionsNameMap = {
    [Actions.Create]: '创建',
    [Actions.Update]: '更新',
    [Actions.Delete]: '删除',
    [Actions.Select]: '选中',
    [Actions.Move]: '移动',
    [Actions.Copy]: '复制',
    [Actions.Paste]: '粘贴',
    [Actions.Clear]: '清空',
    [Actions.Insert]: '插入',
    [Actions.FixedPosition]: '固定位置'
} as const

export enum NodeType {
    Element = 1,
    Text = 3,
}


export interface ContentStackItem {
    tag: string,
    nodeType: NodeType,
    props: object,
    raw: string,
    children: ContentStackItem[]
}

export const contentStack: Array<ContentStackItem> = []

export interface ActionStackItem { }

export const actionsStack = []